package com.cloudbroker.bcs.platform.ltb.middle.service.impl;


import com.cloudbroker.bcs.common.dao.base.DAOBase;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.feedback.back.FeedbackList;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.feedback.vo.FeedbackAdminForm;
import com.cloudbroker.bcs.platform.ltb.middle.dao.FeedBackDAO;
import com.cloudbroker.bcs.platform.ltb.middle.entity.Feedback;
import com.cloudbroker.bcs.platform.ltb.middle.service.FeedBackService;
import com.cloudbroker.bcs.platform.ltb.middle.service.base.TenantServiceImplBase;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by fangyf18371 on 2016/7/15
 * 意见反馈Service
 */
@Service
public class FeedBackServiceImpl  extends TenantServiceImplBase<Feedback,String> implements FeedBackService {
    @Resource
    private FeedBackDAO feedBackDAO;

    @Override
    protected DAOBase<Feedback, String> getDAO() {
        return feedBackDAO;
    }

    public void addFeedBack(String content){
        feedBackDAO.addFeedBack(content);
    }

    public FeedbackList getReply( ){
        return feedBackDAO.getReply();
    }

    public void  addReply(Feedback feedback){
         feedBackDAO.addReply(feedback);
    }

    public List<Feedback> getFeedBack(FeedbackAdminForm feedbackAdminForm){
        return feedBackDAO.getFeedBack(feedbackAdminForm);
    }
    public int countFeedBack(FeedbackAdminForm feedbackAdminForm){
        return feedBackDAO.countFeedBack(feedbackAdminForm);
    }
//    @Override
//    public void addFeedBack(String feedback) {
//        feedBackDAO.addFeedBack(feedback);
//    }
//
//    @Override
//    public void addReply(String replay) {
//        feedBackDAO.addReply(replay);
//    }
//
//    @Override
//    public Feedback getFeedBack(Long feedback_id) {
//        return feedBackDAO.getFeedBack(feedback_id);
//    }
//
//    @Override
//    public Feedback getReply(Long user_id) {
//        return feedBackDAO.getReply(user_id);
//    }



}
